package com.issue.system.mapper;

import com.issue.system.domain.ChildAssignment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * AssignmentMapper接口
 * 
 * @author system
 * @date 2024-10-20
 */
public interface ChildAssignmentMapper 
{
    /**
     * 查询Assignment
     * 
     * @param id Assignment主键
     * @return Assignment
     */
    public ChildAssignment selectChildAssignmentById(Long id);

    /**
     * 查询Assignment列表
     * 
     * @param childAssignment Assignment
     * @return Assignment集合
     */
    public List<ChildAssignment> selectChildAssignmentList(ChildAssignment childAssignment);

    /**
     * 新增Assignment
     * 
     * @param childAssignment Assignment
     * @return 结果
     */
    public int insertChildAssignment(ChildAssignment childAssignment);

    /**
     * 修改Assignment
     * 
     * @param childAssignment Assignment
     * @return 结果
     */
    public int updateChildAssignment(ChildAssignment childAssignment);

    /**
     * 删除Assignment
     * 
     * @param id Assignment主键
     * @return 结果
     */
    public int deleteChildAssignmentById(Long id);

    /**
     * 批量删除Assignment
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteChildAssignmentByIds(Long[] ids);

    List<ChildAssignment> selectListByPhone(@Param("phone") String phone,
                                            @Param("courseId") Long courseId,
                                            @Param("childId") Long childId);
}
